<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>酱出名门人事工资管理平台</title>
		<link rel="stylesheet" type="text/css" href="css/base.css">
		<link type="text/css"
			href="css/custom-theme/jquery-ui-1.8.23.custom.css" rel="stylesheet" />
		<script type="text/javascript" src="js/jquery-1.8.1.min.js"></script>
		<script type="text/javascript" src="js/jquery-ui-1.8.23.custom.min.js"></script>

	</head>

	<BODY class="login_bg">
		<div class="login_wrap">
			<div class="login">
				<h1>
					酱出名门人事工作管理平台
				</h1>
				<div class="login_line"></div>
				<form id="loginform" name="loginform" onsubmit="return check();"
					action="${basePath}loginAction!login.action" method="post">
					<input type="text" name="employee.userName" value=""
						id="loginform_employee_userName" class="login_b1" />
					<input type="password" name="employee.password"
						id="loginform_employee_password" class="login_b2" />
					<input type="image" alt="Submit" src="images/login_b3.gif"
						id="loginform_0" value="Submit" class="login_b3" />

					<div class="login_mem">
					</div>
				</form>
			</div>
		</div>


	</BODY>
	<script type="text/javascript">
        var message = "${message}";
		if (message != "") {
			alert(message);
			message = "";
			
		}
        
		
	    function check() {
	    	if($.trim($("input[name='employee.userName']").val())=="" ) {    
				alert("用户名不能为空");
				$("input[name='employee.userName']").focus();
				return false;
			}
		    if($.trim($("input[name='employee.password']").val())=="") {
				alert("密码不能为空");
			    $("input[name='employee.password']").focus();
			    return false;
			}		
			return true;
	
	    }

	    $(function() {
	    	$("input[name='employee.password']").val("");

		});

	    
    </script>
</html>

